/******************************************************************************
 * * ui_net_manager.h
 *
 * *(C) Copyright 2019 Asr International Ltd.
 * * All Rights Reserved
 * ******************************************************************************/
#ifndef _QQ_NET_MANAGER_H_
#define _QQ_NET_MANAGER_H_

#ifdef __cplusplus
extern "C" {
#endif /* __cpluscplus */

#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lv_watch_conf.h"
#else
#include "../../../lv_watch_conf.h"
#endif

enum
{
    HTTP_QQ_MSG_SEND_REQ = 0,
    HTTP_QQ_MSG_THREAD_DEL = 1,
    HTTP_QQ_MSG_UNKNOW
};

typedef uint8_t http_qq_msg_id_t;
typedef struct
{
    http_qq_msg_id_t msg_id;
    void * msg_data;
} http_qq_msg_t;

extern uint32_t ui_flag;

extern void watch_qq_net_mng_init(void);

extern void watch_qq_net_mng_del(void);

extern void watch_qq_net_mng_send_req(hal_http_send_req_t * http_send_req);

#ifndef BUILD_IN_PC_SIMULATOR
extern void watch_qq_net_mng_del_msg(hal_http_handle_t * http_handle);
#endif

#ifdef __cplusplus
}
#endif /* __cpluscplus */

#endif /* end of _UI_NET_INTERFACE_H_ */
